import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(),
    routes : [
         {
            path:'/',
            name:'login',
            component : () => import('../views/login.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/register',
            name:'register',
            component : () => import('../views/register.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/first',
            name:'first',
            component : () => import('../views/form/first.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/second',
            name:'second',
            component : () => import('../views/form/second.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/third',
            name:'third',
            component : () => import('../views/form/third.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/upload',
            name:'upload',
            component : () => import('../views/form/upload.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/resume',
            name:'resume',
            component : () => import('../views/form/resume.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/post',
            name:'post',
            component : () => import('../views/post.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/companies',
            name:'companies',
            component : () => import('../views/companies.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/myDeliver',
            name:'myDeliver',
            component : () => import('../views/myDeliver.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
        {
            path:'/recruit',
            name:'recruit',
            component : () => import('../views/recruit.vue'),
            beforeEnter : (to, from, next) => {

                next()
            }
        },
    ]
})

export default router